import { BasicColumn, FormSchema } from '@apps/antd-admin/src/components/Table';

export const columns: BasicColumn[] = [
  {
    title: '商户名称',
    dataIndex: 'paramName',
    width: 200,
  },
  {
    title: '讯联机构号',
    dataIndex: 'inscd',
    width: 200,
  },
  {
    title: '讯联商户号',
    dataIndex: 'mchntid',
    width: 200,
  },
  {
    title: '讯联商户签名秘钥',
    dataIndex: 'signKey',
    width: 200,
  },
  {
    title: '请求地址',
    dataIndex: 'openApi',
    width: 200,
  },
  {
    title: '备注',
    dataIndex: 'remark',
    width: 200,
  },
  {
    title: '创建时间',
    dataIndex: 'createTime',
    width: 200,
  },
];

export const searchFormSchema: FormSchema[] = [
  {
    field: 'paramName',
    label: '商户名称',
    component: 'Input',
    colProps: { span: 4 },
  },
];

export const formSchema: FormSchema[] = [
  {
    label: '讯联支付参数Id',
    field: 'xunlianPayparamId',
    component: 'Input',
    required: false,
    show: false,
  },
  {
    label: '商户名称',
    field: 'paramName',
    component: 'Input',
    required: true,
  },
  {
    label: '讯联机构号',
    field: 'inscd',
    component: 'Input',
    required: true,
  },
  {
    label: '讯联商户号',
    field: 'mchntid',
    component: 'Input',
    required: true,
  },
  {
    label: '商户签名秘钥',
    field: 'signKey',
    component: 'Input',
    required: true,
  },
  {
    label: '请求地址',
    field: 'openApi',
    component: 'Input',
    required: true,
  },
  {
    label: '备注',
    field: 'remark',
    component: 'InputTextArea',
    required: false,
  },
];
